<link rel="stylesheet" type="text/css" href="__PUBLIC__/javascripts/admin/asyncbox/skins/default.css" />
<script type="text/javascript" src="__PUBLIC__/javascripts/admin/jquery.form.js"></script>
<script type="text/javascript" src="__PUBLIC__/javascripts/admin/asyncbox/asyncbox.js"></script>
<script type="text/javascript" src="__PUBLIC__/theme/js/uploadPreview/uploadPreview.min.js"></script>
<div class="top3">
    <div class="res_menu">
        <div class="res_t"><a href="{:U('Lzz/category',array('id'=>16))}"><img src="__PUBLIC__/theme/images/res_t01.png" width="97" height="87" border="0"/></a></div>
        <div class="res_j"><a href="{:U('Lzz/category',array('id'=>17))}"><img src="__PUBLIC__/theme/images/res_j01.png" width="97" height="87" border="0"/></a></div>
        <div class="res_v"><a href="#"><img src="__PUBLIC__/theme/images/res_v02.png" width="97" height="87" border="0"/></a></div>
        <div class="clear"></div>
    </div>
</div>
<div class="news_main">
    <div class="news_mm">
        <div class="news_mt">
            <div class="title03"><img src="__PUBLIC__/theme/images/vol_t.png" width="201" height="20"/></div>
            <include file="Default/breadcrumbs"/>
            <div class="clear"></div>
        </div>
        <div class="news_mcon">
            <div class="vol_main">
                <form id='ajaxupload' action="{:U('Lzz/resume_save')}" method='post' enctype='multipart/form-data'>
                <table width="100%" border="0" cellspacing="10" cellpadding="0">
                    <tr>
                        <td colspan="3" style="background:#e9e9e9;"><font color="#FF0000">*</font>&nbsp;号为必填项</td>
                    </tr>
                    <tr>
                        <td><font color="#FF0000">*</font>&nbsp;姓名：&nbsp;&nbsp;<input name="resume[name]" type="text"/></td>
                        <td><font color="#FF0000">*</font>&nbsp;性别：&nbsp;&nbsp;<input name="resume[sex]" type="radio" value="男"/>男&nbsp;&nbsp;<input
                                name="resume[sex]" type="radio" value="女"/>女
                        </td>
                        <td rowspan="4">
                            <div class="photo"><img id="imgShow" width="110" height="115" /></div>
                            <div class="photo_up">
                                <span style="float: left;"><img src="__PUBLIC__/theme/images/icon07.png" width="18" height="15"/></span>
                                <span style="float: left;width: 80px;"><input type="file" name="file" id="up_img" style="width:70px;"/></span>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td><font color="#FF0000">*</font>&nbsp;出生日期：&nbsp;&nbsp;
                            <select name="resume[borth_year]">
                                <option value="">
                                    请选择
                                </option>
                                <for start="1949" end="2014">
                                    <option value="{$i}">
                                       {$i}年
                                    </option>
                                </for>
                        </select>&nbsp;&nbsp;
                            <select name="resume[borth_month]">
                                <option value="">
                                    请选择
                                </option>
                                <for start="1" end="13">
                                    <option value="{$i}">
                                        {$i}月
                                    </option>
                                </for>
                        </select>&nbsp;&nbsp;
                        <select name="resume[borth_day]">
                            <option value="">
                                请选择
                            </option>
                            <for start="1" end="32">
                                <option value="{$i}">
                                    {$i}日
                                </option>
                            </for>
                        </select></td>
                        <td><font color="#FF0000">*</font>&nbsp;婚姻状况：&nbsp;&nbsp;<input name="resume[marry]" type="radio" value="已婚"/>已婚&nbsp;&nbsp;<input
                                name="resume[marry]" type="radio" value="未婚"/>未婚
                        </td>
                    </tr>
                    <tr>
                        <td><font color="#FF0000">*</font>&nbsp;学历：&nbsp;&nbsp;<input name="resume[education]" type="text"/></td>
                        <td><font color="#FF0000">*</font>&nbsp;专业：&nbsp;&nbsp;<input name="resume[profession]" type="text"/></td>
                    </tr>
                    <tr>
                        <td colspan="2"><font color="#FF0000">*</font>&nbsp;毕业院校：&nbsp;&nbsp;<input name="resume[school]" type="text"
                                                                                                    style="width:500px;"/>
                        </td>
                    </tr>
                    <tr>
                        <td><font color="#FF0000">*</font>&nbsp;应聘岗位：&nbsp;&nbsp;<input name="resume[job_name]" type="text"/></td>
                        <td>能否调岗：&nbsp;&nbsp;<input name="resume[transfer_job]" type="radio" value="能"/>能&nbsp;&nbsp;
                            <input name="resume[transfer_job]" type="radio" value="否"/>否
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>期望工作地：&nbsp;&nbsp;<input name="resume[hope_job_address]" type="text"/></td>
                        <td><font color="#FF0000">*</font>&nbsp;期望薪酬：&nbsp;&nbsp;<input name="resume[salary]" type="text"/></td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td><font color="#FF0000">*</font>&nbsp;联系电话：&nbsp;&nbsp;<input name="resume[tel]" type="text"/></td>
                        <td>QQ/E-mail：&nbsp;&nbsp;<input name="resume[qq_email]" type="text"/></td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2"><font color="#FF0000">*</font>&nbsp;家庭住址：&nbsp;&nbsp;<input name="resume[address]" type="text"
                                                                                                    style="width:500px;"/>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div style="float:left;"><font color="#FF0000">*</font>&nbsp;教育经历：&nbsp;&nbsp;</div>
                            <div style="float:left;"><textarea name="resume[education_career]" cols="78" rows="10"></textarea></div>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div style="float:left;"><font color="#FF0000">*</font>&nbsp;工作经历：&nbsp;&nbsp;</div>
                            <div style="float:left;"><textarea name="resume[job_career]" cols="78" rows="10"></textarea></div>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td style="padding-left:100px;"><img class="submit" id="submit_img" src="__PUBLIC__/theme/images/but01.png" width="99" height="39"
                                                              border="0"/></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
                </form>

            </div>
        </div>
    </div>
</div>


<script type="text/javascript">
    formSubmit();
    function formSubmit(url) {
        $(".submit").click(function(){
            $("#ajaxupload").ajaxSubmit({
                dataType: 'text',
                success: function (data) {
                    data = eval('(' + data + ')');
                    if(data.status==1){
                        popup.success(data.info);
                        setTimeout(function(){
                            popup.close("asyncbox_success");
                        },2000);
                    }else{
                        popup.error(data.info);
                        setTimeout(function(){
                            popup.close("asyncbox_error");
                        },2000);
                    }

                    if(data.url&&data.url!=''){
                        setTimeout(function(){
                            top.window.location.href=data.url;
                        },2000);
                    }

                    if(data.status==1&&data.url==''){
                        setTimeout(function(){
                            top.window.location.reload();
                        },1000);
                    }

                }
            });

            return false;
        });
    }

    $(function(){
        new uploadPreview({ UpBtn: "up_img", DivShow: "imgdiv", ImgShow: "imgShow" });
    })
</script>

